home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / CIncludes / FileTransferTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-17  |  2.6 KB  |  145 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        FileTransferTools.h
  3.  
  4.      Contains:    CommToolbox File Transfer Tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1988-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __FILETRANSFERTOOLS__
  18. #define __FILETRANSFERTOOLS__
  19.  
  20. #ifndef __CONDITIONALMACROS__
  21. #include <ConditionalMacros.h>
  22. #endif
  23. #ifndef __DIALOGS__
  24. #include <Dialogs.h>
  25. #endif
  26. #ifndef __FILETRANSFERS__
  27. #include <FileTransfers.h>
  28. #endif
  29.  
  30.  
  31.  
  32. #if PRAGMA_ONCE
  33. #pragma once
  34. #endif
  35.  
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39.  
  40. #if PRAGMA_IMPORT
  41. #pragma import on
  42. #endif
  43.  
  44. #if PRAGMA_STRUCT_ALIGN
  45.     #pragma options align=mac68k
  46. #elif PRAGMA_STRUCT_PACKPUSH
  47.     #pragma pack(push, 2)
  48. #elif PRAGMA_STRUCT_PACK
  49.     #pragma pack(2)
  50. #endif
  51.  
  52.  
  53. enum {
  54.                                                                 /* DEFs */
  55.     fdefType                    = FOUR_CHAR_CODE('fdef'),
  56.     fsetType                    = FOUR_CHAR_CODE('fset'),
  57.     fvalType                    = FOUR_CHAR_CODE('fval'),
  58.     flocType                    = FOUR_CHAR_CODE('floc'),
  59.     fscrType                    = FOUR_CHAR_CODE('fscr'),
  60.     fbndType                    = FOUR_CHAR_CODE('fbnd'),
  61.     fverType                    = FOUR_CHAR_CODE('vers')
  62. };
  63.  
  64.  
  65. enum {
  66.                                                                 /* control */
  67.     ftInitMsg                    = 0,
  68.     ftDisposeMsg                = 1,
  69.     ftSuspendMsg                = 2,
  70.     ftResumeMsg                    = 3,
  71.     ftMenuMsg                    = 4,
  72.     ftEventMsg                    = 5,
  73.     ftActivateMsg                = 6,
  74.     ftDeactivateMsg                = 7,
  75.     ftGetErrorStringMsg            = 8,
  76.     ftAbortMsg                    = 52,
  77.     ftStartMsg                    = 100,
  78.     ftExecMsg                    = 102,
  79.     ftSendMsg                    = 103,
  80.     ftReceiveMsg                = 104
  81. };
  82.  
  83.  
  84. enum {
  85.                                                                 /* setup */
  86.     ftSpreflightMsg                = 0,
  87.     ftSsetupMsg                    = 1,
  88.     ftSitemMsg                    = 2,
  89.     ftSfilterMsg                = 3,
  90.     ftScleanupMsg                = 4
  91. };
  92.  
  93.  
  94. enum {
  95.                                                                 /* validate */
  96.     ftValidateMsg                = 0,
  97.     ftDefaultMsg                = 1
  98. };
  99.  
  100.  
  101. enum {
  102.                                                                 /* scripting */
  103.     ftMgetMsg                    = 0,
  104.     ftMsetMsg                    = 1
  105. };
  106.  
  107.  
  108. enum {
  109.                                                                 /* localization */
  110.     ftL2English                    = 0,
  111.     ftL2Intl                    = 1
  112. };
  113.  
  114.  
  115. struct FTSetupStruct {
  116.     DialogPtr                         theDialog;                    /* the dialog form the application */
  117.     short                             count;                        /* first appended item */
  118.     Ptr                             theConfig;                    /* the config record to setup */
  119.     short                             procID;                        /* procID of the tool */
  120. };
  121. typedef struct FTSetupStruct            FTSetupStruct;
  122.  
  123. typedef FTSetupStruct *                    FTSetupPtr;
  124.  
  125. #if PRAGMA_STRUCT_ALIGN
  126.     #pragma options align=reset
  127. #elif PRAGMA_STRUCT_PACKPUSH
  128.     #pragma pack(pop)
  129. #elif PRAGMA_STRUCT_PACK
  130.     #pragma pack()
  131. #endif
  132.  
  133. #ifdef PRAGMA_IMPORT_OFF
  134. #pragma import off
  135. #elif PRAGMA_IMPORT
  136. #pragma import reset
  137. #endif
  138.  
  139. #ifdef __cplusplus
  140. }
  141. #endif
  142.  
  143. #endif /* __FILETRANSFERTOOLS__ */
  144.  
  145.